﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="user.ascx.cs" Inherits="UserInfo" %>
<%@ Register Assembly="prodamo" Namespace="Jungle.Prodamo.User.WebControls" TagPrefix="PWC" %>
<asp:MultiView ID="UserInfoMenu" Visible="true" runat="server" >
    <asp:View ID="otherInfo" runat="server" >
        <table class="advm_table">
            <tr>
                <td class="advm_td" colspan="2">Информация о пользователе</td>
            </tr>
            <tr>
                <td>Ф.И.О</td>
                <td>
                    <asp:Label ID="lb_fio" runat="server" />
                </td>
            </tr>
            <tr>
                <td>Логин</td>
                <td>
                    <asp:Label ID="lb_nickname" runat="server" />
                </td>
            </tr>            
            <tr>
                <td>E-mail:</td>
                <td>
                    <asp:Label ID="lb_email" runat="server" />
                </td>
            </tr> 
            <tr id="ur1" runat="server">
                <td>Организация</td>
                <td>
                    <asp:Label ID="lb_organization" runat="server" />
                </td>                
            </tr>
            <tr id="ur2" runat="server">
                <td>Код ЕРДПОУ</td>
                <td>
                    <asp:Label ID="lb_erdpou" runat="server" />
                </td>                
            </tr>            
            <tr>
                <td>Адрес</td>
                <td>
                    <asp:Label ID="lb_address" runat="server" />
                </td>
            </tr>                            
            <tr>
                <td>Телефон</td>
                <td>
                    <asp:Label ID="lb_phone" runat="server" />
                </td>
            </tr>                
            <tr id="ur3" runat="server">
                <td>Факс</td>
                <td>
                    <asp:Label ID="lb_faks" runat="server" />
                </td>
            </tr>      
            <tr>
                <td>Пол</td>
                <td>
                    <asp:Label ID="lb_gender" runat="server" />
                </td>
            </tr>       
        </table>
    </asp:View>    
    <asp:View ID="myInfo" runat="server" >
        <table class="advm_table">
            <tr>
                <td class="advm_td" colspan="2">Мои данные</td>
            </tr>
            <tr>
                <td>Фамилия</td>
                <td>
                    <asp:TextBox ID="tb_fname" runat="server" Width="300" />
                </td>
            </tr>
            <tr>
                <td>Имя</td>
                <td>
                    <asp:TextBox ID="tb_iname" runat="server" Width="300" />
                </td>
            </tr>
            <tr>
                <td>Отчество</td>
                <td>
                    <asp:TextBox ID="tb_oname" runat="server" Width="300" />
                </td>
            </tr>   
            <tr>
                <td>Email</td>
                <td>
                    <asp:TextBox ID="tb_email" runat="server" Width="300" />
                </td>
            </tr>                
            <tr id="fz1" runat="server">
                <td>Пол</td>
                <td>
                    <asp:DropDownList ID="ddl_gender" runat="server" >
                        <asp:ListItem Value="1" Text="Муж." />
                        <asp:ListItem Value="0" Text="Жен." />
                    </asp:DropDownList>
                </td>
            </tr>                                            
            <tr id="ur4" runat="server">
                <td>Организация</td>
                <td>
                    <asp:TextBox ID="tb_organization" runat="server" Width="300" />
                </td>
            </tr>
            <tr id="ur5" runat="server">
                <td>Код ЕРДПОУ</td>
                <td>
                    <asp:TextBox ID="tb_erdpou" runat="server" Width="300" />
                </td>
            </tr>                        
            <tr>
                <td>Страна</td>
                <td>
                    <asp:DropDownList ID="ddl_country" runat="server" >
                        <asp:ListItem Value="ua" Text="Украина" />
                        <asp:ListItem Value="ru" Text="Россия" />
                        <asp:ListItem Value="tk" Text="Туркменинстан" />
                    </asp:DropDownList>
                </td>
            </tr> 
            <tr>
                <td>Город</td>
                <td>
                    <asp:DropDownList ID="ddl_city" runat="server" >
                        <asp:ListItem Value="0" Text="Киев" />
                        <asp:ListItem Value="1" Text="Алчевск" />
                        <asp:ListItem Value="2" Text="Белая Церковь" />
                        <asp:ListItem Value="3" Text="Бердянск" />
                        <asp:ListItem Value="4" Text="Винница" />
                        <asp:ListItem Value="5" Text="Днепродзержинск" />
                        <asp:ListItem Value="6" Text="Днепропетровск" />
                        <asp:ListItem Value="7" Text="Донецк" />
                        <asp:ListItem Value="8" Text="Житомир" />
                        <asp:ListItem Value="9" Text="Запорожье" />
                        <asp:ListItem Value="10" Text="Ивано-Франковск" />
                        <asp:ListItem Value="11" Text="Каменец-Подольский" />
                        <asp:ListItem Value="12" Text="Керчь" />
                        <asp:ListItem Value="13" Text="Кировоград" />
                        <asp:ListItem Value="14" Text="Краматорск" />
                        <asp:ListItem Value="15" Text="Красный Луч" />
                        <asp:ListItem Value="16" Text="Кременчуг" />
                        <asp:ListItem Value="17" Text="Кривой Рог" />
                        <asp:ListItem Value="18" Text="Луганск" />
                        <asp:ListItem Value="19" Text="Луцк" />
                        <asp:ListItem Value="20" Text="Лвов" />
                        <asp:ListItem Value="21" Text="Макеевка" />
                        <asp:ListItem Value="22" Text="Мариуполь" />
                        <asp:ListItem Value="23" Text="Нежин" />
                        <asp:ListItem Value="24" Text="Николаев" />
                        <asp:ListItem Value="25" Text="Новая Каховка" />
                        <asp:ListItem Value="26" Text="Одесса" />
                        <asp:ListItem Value="27" Text="Полтава" />
                        <asp:ListItem Value="28" Text="Ровно" />
                        <asp:ListItem Value="29" Text="Севастополь" />
                        <asp:ListItem Value="30" Text="Северодонецк" />
                        <asp:ListItem Value="31" Text="Славутич" />
                        <asp:ListItem Value="32" Text="Сумы" />
                        <asp:ListItem Value="33" Text="Тернополь" />
                        <asp:ListItem Value="34" Text="Ужгород" />
                        <asp:ListItem Value="35" Text="Харьков" />
                        <asp:ListItem Value="36" Text="Херсон" />
                        <asp:ListItem Value="37" Text="Хмельницкий" />
                        <asp:ListItem Value="38" Text="Червоноград" />
                        <asp:ListItem Value="39" Text="Черкассы" />
                        <asp:ListItem Value="40" Text="Чернигов" />
                        <asp:ListItem Value="41" Text="Черновцы" />
                        <asp:ListItem Value="42" Text="Южноукраинск" />
                        <asp:ListItem Value="43" Text="Ялта" />
                  
                    </asp:DropDownList>
                </td>
            </tr> 
            <tr>
                <td>Адрес</td>
                <td>
                    <asp:TextBox ID="tb_address" runat="server" Width="300" />
                </td>
            </tr>            
            <tr>
                <td>Zip(почтовый индекс)</td>
                <td>
                    <asp:TextBox ID="tb_zip" runat="server" Width="300" />
                </td>
            </tr>      
            <tr>
                <td>Телефон</td>
                <td>
                    <asp:TextBox ID="tb_phone" runat="server" Width="300" />
                </td>
            </tr>          
            <tr id="ur6" runat="server">
                <td>Факс</td>
                <td>
                    <asp:TextBox ID="tb_faks" runat="server" Width="300" />
                </td>
            </tr>  
            <tr id="ur9" runat="server">
                <td>Время работы</td>
                <td>
                    <asp:TextBox ID="tb_WorkTime" runat="server" Width="300" />
                </td>
            </tr>              
            <tr id="ur10" runat="server">
                <td>Web</td>
                <td>
                    <asp:TextBox ID="tb_Web" runat="server" Width="300" />
                </td>
            </tr>              
            <tr id="ur8" runat="server">
                <td>Логотип</td>
                <td>
                    <asp:Image ID="img_Logo" runat="server" />
                    <br />
                    <asp:FileUpload ID="fu_Logo" runat="server" />
                </td>
            </tr>    
            <tr id="ur11" runat="server">
                <td>Карта проезда</td>
                <td>
                    <asp:Image ID="img_Map" runat="server" />
                    <br />
                    <asp:FileUpload ID="fu_Map" runat="server" />
                </td>
            </tr>   
            <tr id="ur12" runat="server">
                <td>Доставка</td>
                <td>
                    <asp:TextBox ID="tb_Deliver" TextMode="MultiLine" Rows="7" runat="server" Width="300" />
                </td>
            </tr>  
            <tr id="ur13" runat="server">
                <td>Кредит</td>
                <td>
                    <asp:TextBox ID="tb_Credit" TextMode="MultiLine" Rows="7" runat="server" Width="300" />
                </td>
            </tr>                                           
            <tr id="ur7" runat="server">
                <td>Ваш день рождения</td>
                <td>
                    <asp:DropDownList ID="ddl_day" runat="server" >
                    </asp:DropDownList>
                    <asp:DropDownList ID="ddl_month" runat="server" >
                        <asp:ListItem Text="Январь" Value="1" />
                        <asp:ListItem Text="Февраль" Value="2" />
                        <asp:ListItem Text="Апрель" Value="3" />
                        <asp:ListItem Text="Март" Value="4" />
                        <asp:ListItem Text="Май" Value="5" />
                        <asp:ListItem Text="Июнь" Value="6" />
                        <asp:ListItem Text="Июль" Value="7" />
                        <asp:ListItem Text="Август" Value="8" />
                        <asp:ListItem Text="Сентябрь" Value="9" />
                        <asp:ListItem Text="Октябрь" Value="10" />
                        <asp:ListItem Text="Ноябрь" Value="11" />
                        <asp:ListItem Text="Декабрь" Value="12" />
                    </asp:DropDownList>
                    <asp:DropDownList ID="ddl_year" runat="server" />
                </td>
            </tr>                                                 
            <tr>
                <td collspan="2">
                    <asp:Button ID="btn_UpdateUser" Text="Сохрнить" OnClick="UpdateUser" runat="server" />
                </td>
            </tr>
            <tr>
                <td colspan="2" align="center" id="ValidBlock" runat="server" style="color: Red;">
                </td>
            </tr>            
        </table> 
    </asp:View>   
    <asp:View ID="v_firm" runat="server" >
        <table class="advm_table">
            <tr>
                <td colspan="2" class="advm_td">
                    Информация о компании
                </td>
            </tr>
            <tr>
                <td class="um_CompTd"></td>
                <td>
                    <asp:Image ID="img_c_Logo" runat="server" />
                </td>
            </tr>            
            <tr>
                <td class="um_CompTd">Компания</td>
                <td>
                    <asp:Label ID="lb_c_Name" Font-Bold="true" runat="server" />
                </td>
            </tr>
            <tr>
                <td class="um_CompTd">Телефон</td>
                <td>
                    <asp:Label ID="lb_c_Phone" runat="server" />
                </td>
            </tr>            
            <tr>
                <td class="um_CompTd">Город</td>
                <td>
                    <asp:Label ID="lb_c_City" runat="server" />
                </td>
            </tr>            
            <tr>
                <td class="um_CompTd">Адрес</td>
                <td>
                    <asp:Label ID="lb_c_Address" runat="server" />
                </td>
            </tr>            
            <tr>
                <td class="um_CompTd">Время работы</td>
                <td>
                    <asp:Label ID="lb_c_WorkTime" runat="server" />
                </td>
            </tr>            
            <tr>
                <td class="um_CompTd">E-mail</td>
                <td>
                    <asp:Label ID="lb_c_Email" runat="server" />
                </td>
            </tr>            
            <tr>
                <td class="um_CompTd">Web</td>
                <td>
                    <asp:HyperLink ID="hp_Web" runat="server" />
                </td>
            </tr>            
            <tr>
                <td class="um_CompTd">Доставка</td>
                <td>
                    <asp:Label ID="lb_c_Deliver" runat="server" />
                </td>
            </tr>            
            <tr>
                <td class="um_CompTd">Кредит</td>
                <td>
                    <asp:Label ID="lb_c_Credit" runat="server" />
                </td>
            </tr>            
            <tr>
                <td class="um_CompTd">Карта проезда</td>
                <td>
                    <asp:Image ID="img_c_Map" runat="server" />
                </td>
            </tr> 
            <tr>
                <td class="um_CompTd">Количество товаров</td>
                <td>
                    <asp:Label ID="lb_c_CountGoods" runat="server" />
                </td>
            </tr>   
            <tr id="tr_add" style="display: none;">
                <td colspan="2">
                    <table class="advm_table">
                        <tr>
                            <td colspan="2" class="advm_td">Новый отзыв</td>
                        </tr>
                        <tr>
                            <td>Что вам понравилось?</td>
                            <td>
                                <asp:TextBox ID="tb_Advant" TextMode="MultiLine" Rows="4" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <td>Что вам не понравилось?</td>
                            <td>
                                <asp:TextBox ID="tb_Faling" TextMode="MultiLine" Rows="4" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <td>Общее мнение</td>
                            <td>
                                <asp:TextBox ID="tb_Description" TextMode="MultiLine" Rows="4" runat="server" />
                            </td>
                        </tr>                        
                        <tr>
                            <td>Советуете ли другим?</td>
                            <td>
                                <asp:DropDownList ID="ddl_Advice" runat="server" >
                                    <asp:ListItem Text="Да" Value="1" />
                                    <asp:ListItem Text="Нет" Value="0" />
                                </asp:DropDownList>
                            </td>
                        </tr>  
                        <tr>
                            <td>Ваша оценка</td>
                            <td>
                                <asp:DropDownList ID="ddl_Raiting" runat="server" >
                                    <asp:ListItem Text="1" Value="1" />
                                    <asp:ListItem Text="2" Value="2" />
                                    <asp:ListItem Text="3" Value="3" />
                                    <asp:ListItem Text="4" Value="4" />
                                    <asp:ListItem Text="5" Value="5" />
                                </asp:DropDownList>
                            </td>
                        </tr> 
                        <tr>
                            <td colspan="2">
                                <asp:Button ID="btn_AddEstim" Text="Добавить" OnClick="AddEstim" runat="server" />
                            </td>
                        </tr>                                                                      
                    </table>
                </td>
            </tr>                               
        </table>
    </asp:View> 
</asp:MultiView>  
<br/>
<div id="div_1" runat="server">
<input type="button" style="background-color: #e6edef;" id="btn_OpenAddForm" onclick="document.getElementById('tr_add').style.display = '';" value="Добавить свой отзыв" visible="false" runat="server" />
</div>
<PWC:Estims ID="Estims1" Visible="false" runat="server" /> 
<br/>
<PWC:PriceList Id="PriceList1" Visible="false" runat="server" />